home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
comm
/
cnet
/
Greed2_0.lha
/
Greed
/
Install Greed
< prev
next >
Wrap
Text File
|
1995-05-11
|
7KB
|
231 lines
; $VER: Install Greed Version 2.0 (15 March 1995)
; This script can be distributed with the Greed2.0 Program by
; John Shaffer & Randy Dethman & Chip Chambers
; Groovy Installer script by Spike!
; Use these Icon Tooltypes/CLI options:
; APPNAME=Greed 2.0
;
;check for C-net...
(complete 1)
(working "Locating C-net BBS...")
(set Cnet (getassign "Cnet"))
(if (getassign "systext")
(if (getassign "Pfiles")
(if (getassign "News")
(if Cnet
((message "\n\nFound C-net BBS at\n"Cnet)
(transcript "\n\nFound C-net BBS at\n"Cnet)
)
(abort "\n\nYou must have C-net installed, in order to install Greed.")
)
(abort "\n\nYou must have C-net installed, in order to install Greed.")
)
(abort "\n\nYou must have C-net installed, in order to install Greed.")
)
(abort "\n\nYou must have C-net installed, in order to install Greed.")
)
(set @default-dest "Pfiles:")
(if (> @user-level 0)
(if (exists "Pfiles:Greed" (noreq))
(set @default-dest "Pfiles:Greed")
)
)
(if (= @user-level 0)
(if (exists "Pfiles:Greed" (noreq))
(set @default-dest "Pfiles:Greed")
( (makedir "Pfiles:Greed" )
(set @default-dest "Pfiles:Greed")
)
)
)
(set @default-dest
(askdir
(default @default-dest)
(prompt "Please Select Directory to Install Greed:")
(help "Select the actual directory that the P-file will be "
"installed in.\n\nIf you wish it to be installed in a "
"drawer called \"Greed\", you must create it.\n\n"
@askdir-help)
)
)
(complete 7)
(set tttypes
(askoptions
(choices "Commodore C/G [tt1]" "IBM/ANSI [tt2]")
(default 3)
(prompt "Select Additional Terminal Types to Install:")
(help "Along with the default terminal screens, Greed contains "
"files for these standard C-net terminal types.\n\n"
"Installing these additional terminal screens is "
"optional.\n\n" @askoptions-help)
)
)
(complete 13)
(set Greed-modules
(askoptions
(choices "Greed Winner's News" "Auto-News during sys.welcome")
(default 3)
(prompt "Additional Greed Features to Install:")
(help "Each week, when C-net's AutoMaint resets the Greed game, "
"congratulatory mail is sent to the winners in each "
"catagory.\n\nGreed also has an optional "
"\"Winner's News\" file that may be viewed in your "
"\"News:\" subsystem.\n\nThe \"Winner's News\" may also "
"be automatically displayed by the sys.welcome files "
"during the first login for each user after Greed "
"has been reset.\n\n" @askoptions-help)
)
)
(complete 14)
;if News: selected, ask dir for Greed Winners, else use Greed's dir...
(set default-news @default-dest)
(if (BITAND Greed-modules 1)
(set default-news
(askdir
(default "News:")
(prompt "Please Select Directory for Winner's News:")
(help "Select the actual directory that the \"Greed Winners\" "
"file will be created in.\n\nYou will need "
"to add this as a News item in C-net.\n\n" @askdir-help)
)
)
(set default-news @default-dest)
)
(complete 22)
(copyfiles
(dest @default-dest)
(source "")
(prompt "Copying Default Screens...")
(pattern "sys.#?")
)
(complete 38)
;if (BITAND tttypes 1) copyfiles tt1#?
(if (BITAND tttypes 1)
(copyfiles
(dest @default-dest)
(source "")
(prompt "Copying C=C/G Screens...")
(pattern "tt1.#?")
)
)
(complete 45)
;if (BITAND tttypes 2) copyfiles tt2#?
(if (BITAND tttypes 2)
(copyfiles
(dest @default-dest)
(source "")
(prompt "Copying IBM/ANSI Screens...")
(pattern "tt2.#?")
)
)
(complete 69)
;(textfile (append "text to append")) fix Greed modules path's
(set GreedPath (tackon @default-dest "x"))
(set GreedPath (substr GreedPath 0 (- (strlen GreedPath) 1)))
(foreach "" "_#?"
((working "Copying/Updating Greed Modules...\n" (substr @each-name 1))
(textfile
(dest (tackon @default-dest (substr @each-name 1)))
(include @each-name)
(append (cat "GreedPath='" GreedPath "'\n"
"NewsFile='" (tackon default-news "Greed Winners") "'\n"
"return\n"))
))
)
;GreedPath='Pfiles:SinglePlayer/Greed/' <<final '/' important!
;NewsFile='News:Greed Winners'
(complete 86)
;if AutoNews selected, add line to "systext:xxx.welcome" files.
(if (BITAND Greed-modules 2)
(foreach "Systext:" "???.welcome"
(textfile
(dest (tackon "systext:" @each-name))
(include (tackon "Systext:" @each-name))
(append (cat "#0 " (tackon @default-dest "GreedWelcome") "}\n" ))
)
)
)
(complete 99)
(if (NOT @pretend)
(message "\n\nPlease add \"" (tackon @default-dest "Greed2.0") "\" to your P-files list in "
"C-net.\n\nType = AREXX\nMore? = DISABLED")
)
(if (> @user-level 0)
(transcript "\n\nPlease add \"" (tackon @default-dest "Greed2.0") "\" to your P-files list in "
"C-net.\n\nType = AREXX\nMore? = DISABLED")
)
(if (NOT @pretend)
(message "\n\nPlease add \""(tackon @default-dest "GreedMaint") "\" to your Amaint events.\n\n"
"RunARexx " (tackon @default-dest "GreedMaint") "\nSet to occur ONE day a week.")
)
(if (> @user-level 0)
(transcript "\n\nPlease add \"" (tackon @default-dest "GreedMaint") "\" to your Amaint events.\n\n"
"RunARexx " (tackon @default-dest "GreedMaint") "\nSet to occur ONE day a week.")
)
(if (BITAND Greed-modules 1)
(if (NOT @pretend)
((message "\n\nPlease add \"" (tackon default-news "Greed Winners") "\" to your News "
"system.\n\nType = TEXT")
)
(if (> @user-level 0)
(transcript "\n\nPlease add \"" (tackon default-news "Greed Winners") "\" to your News "
"system.\n\nType = TEXT")
)
)
)
(if (= @user-level 0)
(
(textfile
(dest "T:GreedMessage")
(append "Please add \"" (tackon @default-dest "Greed2.0") "\" to your P-files "
"list in C-net.\n\nType = AREXX\nMore? = DISABLED"
"\n----------------------------------------"
"\nPlease add \""(tackon @default-dest "GreedMaint") "\" to your Amaint events.\n\n"
"RunARexx "(tackon @default-dest "GreedMaint") "\nSet to occur ONE day a week."
"\n----------------------------------------"
"\nPlease add \"" (tackon default-news "Greed Winnerss") "\" to your News "
"system.\n\nType = TEXT"
"\n----------------------------------------"
"\nAnother wonder from:\nThe Codex BBS\nJonesboro, GA, USA\n(404) 473-6173"
)
)
(if (exists "sys:utilities/more" (noreq))
(
(run "run sys:utilities/more T:GreedMessage")
)
)
)
)
(if (> @user-level 0)
(transcript "\n\nAnother wonder from:\nThe Codex BBS\nJonesboro, GA, USA\n(404) 473-6173")
)
(complete 101)
(if (OR (exists "sys:utilities/more" (noreq)) (> @user-level 0))
(
(exit "Another wonder from:\nThe Codex BBS\nJonesboro, GA, USA\n(404) 473-6173")
)
(
(exit "Please read the file\nT:GreedMessage\nfor specific instructions to active Greed in C-Net.")
)
)